//
//  SingerCell.m
//  LastTemp
//
//  Created by dllo on 15/4/24.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "SingerCell.h"
#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height

@implementation SingerCell
-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        // 创建一个imageView
        self.myImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0,WIDTH,WIDTH)];
        [self.contentView addSubview:self.myImageView];
        [_myImageView release];
        // 创建一个label
        self.myLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, WIDTH, WIDTH, 20)];
        self.myLabel.backgroundColor = [UIColor blackColor];
        self.myLabel.font = [UIFont systemFontOfSize:14];
        self.myLabel.textColor = [UIColor whiteColor];
        self.myLabel.alpha = 0.5;
        [self.contentView addSubview:self.myLabel];
        [_myLabel release];
    }
    return self;
}
- (void)dealloc
{
    [_myImageView release];
    [_myLabel release];
    [super dealloc];
}
//- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{
//    [self.delegate clickThisCell:self.myImageView];
//}

@end
